package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.TowingHisDO;
import com.mhc.suzuki.dal.query.TowingHisQuery;

import java.util.List;


/**
 * Manager for TowingHis.
 */
public interface TowingHisManager {
    /**
     * query count by query condition.
     */
    int countByQuery(TowingHisQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(TowingHisQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(TowingHisDO record);

    /**
     * insert selective.
     */
    long insertSelective(TowingHisDO record);

    /**
     * select by query condition.
     */
    List<TowingHisDO> selectByQuery(TowingHisQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<TowingHisDO> selectByQueryWithPage(TowingHisQuery query);

    /**
     * select by primary key.
     */
    TowingHisDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( TowingHisDO record,  TowingHisQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(TowingHisDO record, TowingHisQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(TowingHisDO record);
}